﻿using System.Net;
using System.Text;

namespace hnrzxt.tool
{
    public class HNWZ_API
    {
        public static string Token()
        {
            Uri u = new("http://www.cqhnwz.com:8012/api/test/check");
            HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create(u);
            HttpWebResponse httpResp = (HttpWebResponse)httpReq.GetResponse();
            Stream respStream = httpResp.GetResponseStream();
            StreamReader respStreamReader = new StreamReader(respStream, Encoding.UTF8);
            var strBuff = respStreamReader.ReadToEnd();
            return strBuff;
        }


    }
}
